﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace 实验八第一题
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            string resultString = "注册成功！你好，";

            resultString += txtName.Text;

            if (rdoMale.Checked == true) //判断“男”单选按钮是否被选中
            {
                resultString += "先生";
            }
            else if (rdoFemale.Checked == true)
            {
                resultString += "女士";
            }
            else
            {
            }

            resultString += "<br/>你的密码为：" + txtPassword.Text + "<br/>";
            resultString += "你的职业为：" + dplJob.Text + "<br/>";
            resultString += "你的爱好为：";

            if (chkReading.Checked == true) //判断“阅读”复选框是否被选中
            {
                resultString += "阅读&nbsp;";
            }

            if (chkSing.Checked == true)
            {
                resultString += "唱歌&nbsp;";
            }

            if (chkDance.Checked == true)
            {
                resultString += "跳舞&nbsp;";
            }

            resultString += "<br/>你的个人简介为：<br/>";
            resultString += txtResume.Text;

            lblInfo.Text = resultString; //将整个字符串显示在Label控件上
        }
    }
}